package xzy.com.entity.domain;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("users") // 指定表名称
public class Users {
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	private String userName; // 对应表中user_name
	private String account;

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date createTime;// 对应表中create_time

	private int state;
	private String password;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public String toString() {
		return "Users [id=" + id + ", userName=" + userName + ", account=" + account + ", createTime=" + createTime
				+ ", state=" + state + ", password=" + password + "]";
	}

	

}
